package com.huaguoguo.admin.service.impl;

import com.huaguoguo.admin.service.UserService;
import com.huaguoguo.dao.TbUserMapper;
import com.huaguoguo.pojo.TbUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description: 用户服务实现类
 * author:huaguoguo
 * Date: 2019/1/24
 * Time: 17:03
 */
@RestController
@RequestMapping("/admin")
@Slf4j
public class UserServiceImpl implements UserService{


    @Autowired
    private TbUserMapper userMapper;


    @Override
    public TbUser getUserInfo(){
        TbUser tbUser = userMapper.selectByPrimaryKey(7L);
        return tbUser;
    }


}
